/**
 * 
 */
package com.imooc.security.core.validate.code.image;

import com.imooc.security.core.validate.code.ValidateCode;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;


/**
 * @author zhailiang
 *
 */
public class ImageCode extends ValidateCode {
	
	private BufferedImage image;

	public ImageCode(BufferedImage image, String code, int expireIn) {
		super(code, expireIn);
		this.image = image;
	}

	public ImageCode(BufferedImage image, String code, LocalDateTime expireTime) {
		super(code, expireTime);
		this.image = image;
	}

	/**
	 * image
	 *
	 * @return image 项目描述（略）
	 */
	public BufferedImage getImage() {
		return image;
	}

	/**
	 * image
	 *
	 * @param image 项目描述（略）
	 */
	public void setImage(BufferedImage image) {
		this.image = image;
	}

}
